package com.example.app.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;

public class NameUpdateRequest {
    @NotBlank(message = "新姓名不能为空")
    @Size(min = 2, max = 20, message = "姓名长度应在2-20位之间")
    private String newName;

    // Getters and Setters
    public String getNewName() {
        return newName;
    }

    public void setNewName(String newName) {
        this.newName = newName;
    }
}